package com.cloud.flowable.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(name = "流程抄送对象", description = "流程管理")
@TableName("wf_copy")
public class WfCopy extends BaseEntity {

    private static final long serialVersionUID=1L;

    @Schema(description = "抄送主键")
    @TableId(value = "copy_id")
    private String copyId;

    @Schema(description = "抄送标题")
    private String title;

    @Schema(description = "流程主键")
    private String processId;

    @Schema(description = "流程名称")
    private String processName;

    @Schema(description = "流程分类主键")
    private String categoryId;

    @Schema(description = "部署主键")
    private String deploymentId;

    @Schema(description = "流程实例主键")
    private String instanceId;

    @Schema(description = "任务主键")
    private String taskId;

    @Schema(description = "用户主键")
    private Long userId;

    @Schema(description = "发起人Id")
    private Long originatorId;

    @Schema(description = "发起人名称")
    private String originatorName;

    @Schema(description = "逻辑删除 0未删除 1.删除")
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Integer deleted;

}
